
close all

format long

%% Data Import

filename = 'Morphology.xlsx'; % file name to read
sheet = 6; % sheet to read

[num,txt,raw] = xlsread(filename,sheet);
Bin_0mM = num(1:3,1:3)
Bin_10mM = num(1:3,7:9)


%% Rounded Comparison
% Import excel data

Rounded = [Bin_0mM(:,1),Bin_10mM(:,1)]

[p_Rounded tbl_Rounded stats_Rounded] = anova1(Rounded) % where T is a matrix with data columns
Rounded_change_comparison = multcompare(stats_Rounded) % multiple comparisons test

%% Spread Comparison
% Import excel data

Spread = [Bin_0mM(:,2),Bin_10mM(:,2)]

[p_Spread tbl_Spread stats_Spread] = anova1(Spread) % where T is a matrix with data columns
Spread_change_comparison = multcompare(stats_Spread) % multiple comparisons test

%% Elongated Comparison
% Import excel data

Elongated = [Bin_0mM(:,3),Bin_10mM(:,3)]

[p_Elongated tbl_Elongated stats_Elongated] = anova1(Elongated) % where T is a matrix with data columns
Elongated_change_comparison = multcompare(stats_Elongated) % multiple comparisons test